Class_name = "CTurret"
object_name = "TurretFe2b_1"

[COCKPIT_LIMITS]
x= -0.6, 0.2
y= -0.8, 0.5
z= -0.5, 0.5
[END]

VisualImage=0,"graphics/planes/fe2b/fe2b_C1_Low.mgm",1
VisualImage=1,"graphics/planes/fe2b/fe2b_C1.mgm",0

CollisionBody="graphics/planes/fe2b/fe2b_C1.col"

VisualRadius=2.0

mp_site=true

[attach=0]
	position = 0.3, 0.2, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerFe2_sing.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/bullet_gbr_77x56r_mk7.bin"

SoundScript="LuaScripts/Fe2b_T.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

// transfer_number	= quality group (variable num)
// 100	= med 0 (0)
// 101	= med 0 (1)
// 102	= med 1 (0)
// 103	= med 1 (1)
// 104	= med 2 (0)
// 105	= med 2 (1)

// 000	= low 0 (0)
// 001	= low 0 (1)
// 002	= low 0 (2)
// 003	= low 0 (3)
// 004	= low 1 (0)
// 005	= low 1 (1)
// 006	= low 1 (2)
// 007	= low 1 (3)
// 008	= low 2 (0)
// 009	= low 2 (1)
// 010	= low 2 (2)
// 011	= low 2 (3)

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)
FetchArgVal=12900, 000, 0.00, "Smooth_clamp" // . 


[TurretsPos=1]
	position = 0.2114, 0.1642, -0.4533
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -65.001
		SectorAngleMax = -64.999

		AngularSpeed   = 60.0

		AnimationArgMin = 0.5
		AnimationArgMax = 0.5

		AnimationArgNum = 21001

		Point = 0.0, 0.0, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1
	[end]

	[Joint=1]
		SectorAngleMin = -36.0
		SectorAngleMax = 36.0
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.4
		AnimationArgMax = 0.6

		AnimationArgNum = 21006

		Point = -0.0008,0.0843,0.0
		Axis  = 0.0, 1.0, 0.0
		
		IsCycled = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
		
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45
		
		AngularSpeed = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.57, -0.51, -0.01
	relativeBotSit = -0.6, -0.4, -0.01
	relativeBotDead = -0.6, -0.4, -0.01
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1

	SightPosition = 0.0, 2.0, 0.0
	defaultDirection = 0.1, 0.1, -0.2
	AimSector=0.4226,0,-0.9063,45

	CamDisplacement = -0.25, 0.230, -0.001
[end]

[TurretsPos=2]
	position = 0.5003, 0.1642, 0.0002
	PosMoveArg = 21000
	default = true

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -0.001
		SectorAngleMax = 0.001

		AngularSpeed   = 60.0

		AnimationArgMin = 0.5
		AnimationArgMax = 0.5

		AnimationArgNum = 21001

		Point = 0.0, 0.0, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1
	[end]

	[Joint=1]
		SectorAngleMin = -36.0
		SectorAngleMax = 36.0
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.4
		AnimationArgMax = 0.6

		AnimationArgNum = 21006

		Point = -0.0008,0.0843,0.0
		Axis  = 0.0, 1.0, 0.0
		
		IsCycled = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
		
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45
		
		AngularSpeed = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.57, -0.51, -0.01
	relativeBotSit = -0.6, -0.4, -0.01
	relativeBotDead = -0.6, -0.4, -0.01
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1

	SightPosition = 0.0, 2.0, 0.0
	defaultDirection = 0.2, 0.1, 0.0
	AimSector=1,0,0,45

	CamDisplacement = -0.25, 0.230, -0.001
[end]

[TurretsPos=3]
	position = 0.2114, 0.1642, 0.4533
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = 64.999
		SectorAngleMax = 65.001

		AngularSpeed   = 60.0

		AnimationArgMin = 0.5
		AnimationArgMax = 0.5

		AnimationArgNum = 21001

		Point = 0.0, 0.0, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1
	[end]

	[Joint=1]
		SectorAngleMin = -36.0
		SectorAngleMax = 36.0
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.4
		AnimationArgMax = 0.6

		AnimationArgNum = 21006

		Point = -0.0008,0.0843,0.0
		Axis  = 0.0, 1.0, 0.0
		
		IsCycled = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
		
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45
		
		AngularSpeed = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.57, -0.51, -0.01
	relativeBotSit = -0.6, -0.4, -0.01
	relativeBotDead = -0.6, -0.4, -0.01
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1

	SightPosition = 0.0, 2.0, 0.0
	defaultDirection = 0.1, 0.1, 0.2
	AimSector=0.4226,0,0.9063,45

	CamDisplacement = -0.25, 0.230, -0.001
[end]

[TurretsPos=4]
	position = -0.5948, 1.1206, 0.0802
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = 179.999
		SectorAngleMax = -179.999

		AngularSpeed   = 60.0

		AnimationArgMin = 0.5
		AnimationArgMax = 0.5

		AnimationArgNum = 21001

		Point = 0.0, 0.0, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1
	[end]

	[Joint=1]
		SectorAngleMin = -54.0
		SectorAngleMax = 47.0
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.35
		AnimationArgMax = 0.6305556

		AnimationArgNum = 21006

		Point = -0.0008,0.0843,0.0
		Axis  = 0.0, 1.0, 0.0
		
		IsCycled = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
		
	[end]

	[Joint=2]
		SectorAngleMin = -54
		SectorAngleMax = 36
		
		AngularSpeed = 120.0

		AnimationArgMin = 0.35
		AnimationArgMax = 0.6

		AnimationArgNum = 21007
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.62, -0.52, -0.05
	relativeBotSit = -0.6, -0.4, 0.1
	relativeBotDead = -0.6, -0.43, 0.0
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1

	SightPosition = 0.0, 2.0, 0.0
	defaultDirection = -0.2, 0.1, 0.0
	AimSector=-1,0,0,90

	CamDisplacement = -0.25, 0.230, -0.001
[end]

[TurretsGun=1]

	Displacement = 0.6653, 0.0734, 0.0

	GunType = "LuaScripts/WorldObjects/Weapons/Lewis.txt"

	ReLoadingStagesTime = 1.0, 3.0, 1.0, 0.3
 
	MaxRoundsInMagazine = 97
	RoundsInMagazine = 97
	MaxReservedMagazines = 10
	ReservedMagazines = 10
	MaxMisFiresInMagazine = 1
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 1
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9182
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	FiringPinPositionArgIdx = 9016

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 5.2, 1.95, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 180.0
	
	NumOfAnimations = 4

	BushCoord = -0.1369, 0.0734, 0.026
	BushSpeed = 0.0, 0.0, 1.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_MK7.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_WMK1_AP.txt"
	[end]

[end]

SightPos = 0.0, 2.0, 0.0
PositionChangeTime = 0.25
ReloadDelay = 0.3
ShootOutSoundID = 0

BotRotaionValueZ = 0	//-2.0
LegsParameter = 0

BotMaxSecondAngle = 47.0
BotMinSecondAngle = -54.0

BotMaxFirstAngle  = -60
BotMinFirstAngle  = 36

FirstToSecondInterp = 0.0

TotalSectorLimits = 4

//   ,         
SectorLimits0 = -180.0, -150.0, +5.0, +90.0
SectorLimits1 = -150.0, -100.0, +0.0, +90.0
SectorLimits2 = +100.0, +150.0, +0.0, +90.0
SectorLimits3 = +150.0, +180.0, +5.0, +90.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
